package com.battle.pojo.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import lombok.Data;
import nirvana.core.domains.ann.AccEntity;
import nirvana.core.domains.entity.DomainBaseEntity;
import nirvana.core.domains.enums.EntityType;

/**
 * @author anni.zhu
 * @author anni.zhu@king-v.com
 * Created in 2024/10/25 15:02
 * 用户消息
 */
@Data
@TableName(value = "USER_MESSAGE",autoResultMap = true)
@Entity(name = "USER_MESSAGE")
@AccEntity(value = "用户消息", type = EntityType.SERVICE_ENTITY)
public class UserMessage extends DomainBaseEntity<UserMessage> {

    /**
     * 用户id
     */
    @Column()
    private Long userId;

    /**
     * 消息标题
     */
    @Column()
    private String type;

    /**
     * 消息内容
     */
    @Column()
    private String message;

    /**
     * 是否已读
     */
    @Column()
    private Boolean isRead;
}
